package com.utonw.carloan.global;

import android.os.Environment;

import java.io.File;

/**
 * DarkRanger的常量
 * 
 * @author Administrator
 *
 */
public class DRConstants {
	/************************** App **************************/
	// could be modified
	/** App名称 **/
	public static final String APP_NAME = "CarLoan";

	/** App目录路径 **/
	public static final String APP_ROOT_PATH = Environment.getExternalStorageDirectory() + File.separator + APP_NAME;

	/************************** DataBase **************************/
	// could be modified
	/** APP数据库目录名称 **/
	public static final String DB_FOLDER_NAME = "DataBase";

	/** App数据库目录路径 **/
	public static final String DB_FOLDER_PATH = APP_ROOT_PATH + File.separator + DB_FOLDER_NAME;

	// could be modified
	/** App数据库文件后缀 **/
	public static final String DB_FILE_SUFFIX = ".db";

	/** App数据库文件名称 **/
	public static final String DB_FILE_NAME = APP_NAME + DB_FILE_SUFFIX;

	/** App数据库文件路径 **/
	public static final String DB_FILE_PATH = DB_FOLDER_PATH + File.separator + DB_FILE_NAME;

	/************************** Log **************************/

	// could be modified
	/** AppLog目录名称 **/
	public static final String LOG_FOLDER_NAME = "Log";

	/** AppLog目录路径 **/
	public static final String LOG_FOLDER_PATH = APP_ROOT_PATH + File.separator + LOG_FOLDER_NAME;

	// could be modified
	/** AppLog4j文件后缀 **/
	public static final String LOG4J_FILE_SUFFIX = "_log4j.log";

	/** AppJDKLog文件后缀 **/
	public static final String LOGJDK_FILE_SUFFIX = "_jdklog.log";

	/** AppLog4j文件名称 **/
	public static final String LOG4J_FILE_NAME = APP_NAME + LOG4J_FILE_SUFFIX;

	/** AppJDKLog文件名称 **/
	public static final String LOGJDK_FILE_NAME = APP_NAME + LOGJDK_FILE_SUFFIX;

	/** AppLog4j文件路径 **/
	public static final String LOG4J_FILE_PATH = LOG_FOLDER_PATH + File.separator + LOG4J_FILE_NAME;

	/** AppJDKLog文件路径 **/
	public static final String LOGJDK_FILE_PATH = LOG_FOLDER_PATH + File.separator + LOGJDK_FILE_NAME;

	/************************** Crash **************************/

	// could be modified
	/** AppCrash目录名称 **/
	public static final String CRASH_FOLDER_NAME = "Crash";

	/** AppCrash目录路径 **/
	public static final String CRASH_FOLDER_PATH = APP_ROOT_PATH + File.separator + CRASH_FOLDER_NAME;

	// could be modified
	/** AppCrash文件后缀 **/
	public static final String CRASH_FILE_SUFFIX = "_Crash.txt";

	/** AppCrash文件名称 **/
	public static final String CRASH_FILE_NAME = APP_NAME + CRASH_FILE_SUFFIX;

	/** AppCrash文件路径 **/
	public static final String CRASH_FILE_PATH = CRASH_FOLDER_PATH + File.separator + CRASH_FILE_NAME;
}
